﻿using System.ComponentModel;
using System.Windows;

namespace Commands.Dialogs
{
    /// <summary>
    /// Interaction logic for ConfirmWindow.xaml
    /// </summary>
    public partial class ConfirmWindow : Window, INotifyPropertyChanged
    {
        #region Properties

        public string DialogText
        {
            get
            {
                return dialogText;
            }
            set
            {
                dialogText = value;
                OnPropertyChanged("DialogText");
            }
        }

        #endregion

        public ConfirmWindow()
        {
            InitializeComponent();
        }

        private void Button_Click(object sender, RoutedEventArgs e)
        {
            DialogResult = true;
        }

        #region INotifyPropertyChanged Members

        public event PropertyChangedEventHandler PropertyChanged;

        private void OnPropertyChanged(string propertyName)
        {
            if (PropertyChanged != null)
            {
                PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }

        #endregion

        #region Private fields

        private string dialogText;

        #endregion
    }
}
